package com.amway.qy.message.resp;

import com.amway.qy.core.constants.RespMsgType;
import com.amway.qy.message.resp.section.RespMediaSection;

public class RespImageMessage extends RespBaseMessage {
	protected RespMediaSection Image;
	
	/*
	 * 考虑到与微信的交互，有相关的特定字段约束（e.g 必有项），为防止上层业务用户调用时，发生错漏。需要在创建相应的实例时，就必须提供必填项。
	 */
	public RespImageMessage(String toUserName, String fromUserName,RespMediaSection img){
		super(toUserName, fromUserName);
		this.Image = img;
		setMsgType(RespMsgType.RESP_MESSAGE_TYPE_IMAGE);
	}
	public RespMediaSection getImage() {
		return Image;
	}
	public void setImage(RespMediaSection image) {
		Image = image;
	}
	@Override
	public String toString() {
		return "RespImageMessage [Image=" + Image + ", ToUserName=" + ToUserName + ", FromUserName=" + FromUserName
				+ ", CreateTime=" + CreateTime + ", MsgType=" + MsgType + "]";
	}
	
}
